// SensibilityDialog.cpp : implementation file
//

#include "stdafx.h"
#include "CGWork.h"
#include "SensibilityDialog.h"
#include "afxdialogex.h"


// SensibilityDialog dialog

IMPLEMENT_DYNAMIC(SensibilityDialog, CDialogEx)

SensibilityDialog::SensibilityDialog(int rotate, int scale, int translate, CWnd* pParent /*=NULL*/)
	: CDialogEx(SensibilityDialog::IDD, pParent)
	, rotateValue(rotate)
	, translateValue(translate)
	, scaleValue(scale)
{

}

SensibilityDialog::~SensibilityDialog()
{
}

void SensibilityDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_SLIDER_ROTATE, rotateSensibility);
	DDX_Control(pDX, IDC_SLIDER_TRANSLATE, translateSensibility);
	DDX_Control(pDX, IDC_SLIDER_SCALE, scaleSensibility);
	DDX_Slider(pDX, IDC_SLIDER_ROTATE, rotateValue);
	DDV_MinMaxInt(pDX, rotateValue, 0, 100);
	DDX_Slider(pDX, IDC_SLIDER_TRANSLATE, translateValue);
	DDV_MinMaxInt(pDX, translateValue, 0, 100);
	DDX_Slider(pDX, IDC_SLIDER_SCALE, scaleValue);
	DDV_MinMaxInt(pDX, scaleValue, 0, 100);
}


BEGIN_MESSAGE_MAP(SensibilityDialog, CDialogEx)
	ON_NOTIFY(NM_CUSTOMDRAW, IDC_SLIDER_ROTATE, &SensibilityDialog::OnNMCustomdrawSliderRotate)
END_MESSAGE_MAP()


// SensibilityDialog message handlers


void SensibilityDialog::OnNMCustomdrawSliderRotate(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMCUSTOMDRAW pNMCD = reinterpret_cast<LPNMCUSTOMDRAW>(pNMHDR);
	// TODO: Add your control notification handler code here
	*pResult = 0;
}
